package com.yipei.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yipei.business.domain.MlAccountAssetApply;

import java.util.List;

/**
 * 出入资金Service接口
 *
 * @author yipei
 * @date 2024-12-21
 */
public interface IMlAccountAssetApplyService extends IService<MlAccountAssetApply>
{
    /**
     * 查询出入资金
     *
     * @param id 出入资金主键
     * @return 出入资金
     */
    public MlAccountAssetApply selectMlAccountAssetApplyById(Long id);

    /**
     * 查询出入资金列表
     *
     * @param mlAccountAssetApply 出入资金
     * @return 出入资金集合
     */
    public List<MlAccountAssetApply> selectMlAccountAssetApplyList(MlAccountAssetApply mlAccountAssetApply);

    /**
     * 新增出入资金
     *
     * @param mlAccountAssetApply 出入资金
     * @return 结果
     */
    public int insertMlAccountAssetApply(MlAccountAssetApply mlAccountAssetApply);

    /**
     * 修改出入资金
     *
     * @param mlAccountAssetApply 出入资金
     * @return 结果
     */
    public int updateMlAccountAssetApply(MlAccountAssetApply mlAccountAssetApply);

    /**
     * 批量删除出入资金
     *
     * @param ids 需要删除的出入资金主键集合
     * @return 结果
     */
    public int deleteMlAccountAssetApplyByIds(Long[] ids);

    /**
     * 删除出入资金信息
     *
     * @param id 出入资金主键
     * @return 结果
     */
    public int deleteMlAccountAssetApplyById(Long id);

    int add(MlAccountAssetApply mlAccountAssetApply) throws Exception;


    int cancelMlAccountAssetApplyById(Long id);
}
